using POCGame.Screens;
using Rocuna.Core.Exceptions;
using Rocuna.GameEngine;
using Rocuna.GameEngine.Constants;
using Rocuna.GameEngine.Extension.WP7;
using Rocuna.GameEngine.Extension.WP7.Input;
using Rocuna.GameEngine.Extension.WP7.Input.Constants;
using Rocuna.GameEngine.Input;
using Rocuna.GameEngine.State;
using Rocuna.GameEngine.State.Screens;

namespace POCGame
{
    public class Bootstrapper : PhoneBootstrapper
    {
        public override void RegisterDevices()
        {
            var inputManager = Game.Services.GetService(typeof(InputManager)) as InputManager;
            if (inputManager == null)
                throw new NotInitializedException();

        }

        public override void RegisterScreens()
        {
            var screenManager = Game.Services.GetService(typeof(ScreenManager)) as ScreenManager;
            if (screenManager == null)
                throw new NotInitializedException();
            screenManager.RegisterScreen(ScreensNames.DeveloperSplash, new DeveloperSplashScreen(Game));
            screenManager.ActivateScreen(ScreensNames.DeveloperSplash);
        }

    }
}